package ZiXi;

import java.util.Random;

public class zixi05 {
    public static void main(String[] args) {
        int[] arr=new int[8];
        int sum=0;
        for (int i = 0; i < arr.length; i++) {
            Random k=new Random();
            arr[i]=k.nextInt(10)+1;
            sum=sum+arr[i];
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }
        System.out.println("-----");
        System.out.println(sum/8);
    }
}
